/**
 * Created by IntelliJ IDEA.
 * Time: 13:04
 * @Author: xyb
 * @Version: 2017/6/29
 * To change this template use File | Settings | File Templates.
 */

(function () {

    var user = {};

    var onLogin_url = "/user/login.json";//登陆
    var onRegister_url = "/user/register.json";// 注册
    
    var onGetUserInfoShow_url = "/user/info/on_get_user_info_show.json";// 获取用户信息


    backService.user = user;

    user.onLogin = function (data, callback, failure) {
        backService.post(onLogin_url, data, callback, failure);
    };

    user.onRegister = function (data, callback, failure) {
        backService.post(onRegister_url, data, callback, failure);
    };
    
    
    user.onGetUserInfoShow = function(userId,callback,failure) {
    	backService.post(onGetUserInfoShow_url,{
    		userId:userId
    	},callback,failure);
    }
    
    
    

})();